<div class="platf_pblc_choose">
    <if condition="!$result_gzh AND !$result_xl AND !$result_tx AND !$result_qq">
        <div class="account_null">
            <span class="iconfont icon-warning"></span>
            <p class="title">您还没有绑定授权公众号</p>
            <if condition="$guide eq 'show'">
                <p class="spa_gray">请前往<a href="#" onclick="javascript:void(0);$('#register-guide').modal('show');">账号设置</a>中绑定</p>
                <else/>
                <p class="spa_gray">请前往<a href="/my_account">账号设置</a>中绑定</p>
            </if>
        </div>
        <else />
        <div class="platform ">
            <div>平台：</div>
            <div class="platform_list more_platform">
                <ul class="public_platform">
                    <if condition="$result_gzh neq null">
                        <li class="platform_item green active" data-platform="weixin" data-pt="mp.weixin.qq.com"><span class="iconfont icon-weixin"></span> 微信 </li>
                        <!-- <li class="platform_item tangerine" data-platform="sina" data-pt="sina.com"><span class="iconfont icon-iconfontweibo"></span> 微博 </li> -->
                        <li class="platform_item red" data-platform="toutiao" data-pt="toutiao.com"><span class="iconfont icon-icontoutiao"></span> 头条 </li>
                        <elseif condition="$result_xl neq null" />
                        <li class="platform_item tangerine">
                            <span class="iconfont icon-iconfontweibo"></span>新浪微博
                        </li>
                        <elseif condition="$result_tx neq null" />
                        <li class="platform_item jewelry-blue">
                            <span class="iconfont icon-tengxunweibo"></span>腾讯微博
                        </li>
                        <elseif condition="$result_qq neq null" />
                        <li class="platform_item shading-yellow">
                            <span class="iconfont icon-qqkongjian"></span>QQ空间
                        </li>
                    </if>
                </ul>
                <div class="list_sharp hide"></div>
            </div>
        </div>
        <div class="public_number">
            <div>公众号：</div>
            <div class="public_choose">
                <div class="account_info">
                    <p class="all_num">全部公众号</p>
                    <foreach name="result_gzh" item="gzh">
                        <input type="hidden" value="{$gzh['original_id']}" class="original_id">
                    </foreach>
                </div>
                <div class="account_modify" data-toggle="modal" data-target="#public_list"><span class="iconfont icon-edit-pen"></span>点击修改</div>
            </div>
        </div>
    </if>
</div>
<!-- 公众号选择 -->
<div class="modal fade public-number-list" data-backdrop="static" id="public_list" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document" style="width: 740px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">选择公众号</h4>
            </div>
            <div class="modal-body">
                <div class="account_detail">
                    <div class="detail_sub cover">
                        <p>全部公众号</p>
                    </div>
                    <foreach name="result_gzh" item="each_res">
                        <div class="detail_sub">
                            <img src="{$each_res['image']}" alt="" class="pub_img" onerror="this.src='/Public/dev/images/default_face.png';" />
                            <div class="sub_text">
                                <p class="pub_name">{$each_res['user_name']}</p>
                                <input type="hidden" value="{$each_res['func_info']}" class="func_info">
                                <input type="hidden" value="{$each_res['original_id']}" class="original_id">
                                <input type="hidden" value="{$each_res['app_id']}" class="app_id">
                                <if condition="$each_res['service_type_info'] eq 0">
                                    <p class="pub_type">
                                        <span class="iconfont icon-dingyuehao"></span>
                                        <span class="service-name">&nbsp;订阅号</span>
                                    </p>
                                    <elseif condition="$each_res['service_type_info'] eq 2" />
                                    <p class="pub_type"><span class="iconfont icon-server"></span>
                                        <span class="service-name">&nbsp;服务号</span></p>
                                    <elseif condition="$each_res['service_type_info'] eq 1" />
                                    <p class="pub_type"><span class="iconfont icon-dingyuehao"></span>
                                        <span class="service-name">&nbsp;订阅号</span></p>
                                </if>
                            </div>
                        </div>
                    </foreach>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="ok btn-success" public_btn>确定</button>
                <button type="button" class="btn-default cancel" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 图片预览 -->
<div class="modal fade public-number-list" data-backdrop="static" id="img_prev" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-body">
                <div class="img_prev">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <img alt="" onerror="this.src='/Public/static/images/wuyulantu.png';">
                </div>
            </div>
        </div>
    </div>
</div>
